<div class="modal fade bs-example-modal-lg" tabindex="-1" aria-labelledby="msg_dialog_title" id="hongbao-detail-modal"
     role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <a href="javascript:void(0);" title="关闭" class="close" data-dismiss="modal">×</a>
                <h4 class="modal-title">
                    红包信息
                </h4>
            </div>
            <div class="modal-body">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <form class="form-horizontal" role="form" id="hongbao_form" action="javascript:doSendHongbao();"
                              method="post">
                            <div class="form-group">
                                <label for="mobile" class="col-sm-2 control-label">手机号码</label>
                                <div class="col-sm-10">
                                    <select id="mobile" name="mobile" placeholder="手机号码" class="form-control">
                                        {@if data.orderMobile}
                                        <option value="${data.orderMobile}">下单人:${data.orderMobile}</option>
                                        {@/if}
                                        {@if data.mobile}
                                        <option value="${data.mobile}">收货人:${data.mobile}</option>
                                        {@/if}
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="sourcePageEnum" class="col-sm-2 control-label">红包适用类型</label>
                                <div class="col-sm-10">
                                    <select id="sourcePageEnum" name="sourcePageEnum" placeholder="红包类型"
                                            class="form-control">
                                        <option value="NOLIMIT">普通红包</option>
                                        <option value="GROUP">拼团红包</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="orderId" class="col-sm-2 control-label">订单ID</label>
                                <div class="col-sm-10">
                                    <input type="text" id="orderId" name="orderId" class="form-control"
                                           placeholder="订单ID" readonly="readonly" value="${data.orderId}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="couponName" class="col-sm-2 control-label">红包名称</label>
                                <div class="col-sm-10">
                                    <input type="text" id="couponName" name="couponName" class="form-control"
                                           placeholder="红包名称">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="price" class="col-sm-2 control-label">红包类型</label>
                                <div class="col-sm-10">
                                    <select id="unlimited" name="unlimited" class="form-control">
                                        <option value="false">受限制红包</option>
                                        <option value="true">不受限制红包</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="price" class="col-sm-2 control-label">红包金额(元)</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="price" id="price"
                                           required
                                           data-bv-notempty-message="请输入0-10元内的金额"

                                           min="0"
                                           data-bv-greaterthan-inclusive="true"
                                           data-bv-greaterthan-message="请输入0-10元内的金额"

                                           max="10"
                                           data-bv-lessthan-inclusive="true"
                                           data-bv-lessthan-message="请输入0-10元内的金额" placeholder="请输入0-10元内的金额"/>
                                </div>
                            </div>
                            
                            <div class="form-group" id="select_style">
                                <label for="select_style" class="col-sm-2 control-label">是否动态生成</label>
                                <div class="col-sm-10">
                                    <input type="radio" name="select-time" value="动态生成" checked="checked"
                                           id="dynamic-date"/>
                                    动态生成
                                    <input type="radio" name="select-time" value="自定义时间" id="defined-date" ／>
                                    自定义时间
                                </div>
                            </div>
                            <div class="form-group" id="vality">
                                <label for="vality-time" class="col-sm-2 control-label">有效期</label>
                                <div class="col-sm-10">
                                    <select id="vality-time" class="vality-time form-control">
                                        <!--<option value="">全部</option>-->
                                        <option value="3">3天</option>
                                        <option value="5">5天</option>
                                        <option value="7">7天</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group data-change" style="display:none">
                                <label for="startTime_view" class="col-sm-2 control-label">有效期开始时间</label>
                                <div class="col-sm-10">
                                    <div class="input-group date form_datetime" data-date=""
                                         data-date-format="yyyy-mm-dd hh:ii:00" data-link-field="startTime"
                                         data-link-format="yyyy-mm-dd hh:ii:00">
                                        <input class="form-control" id="startTime_view" name="startTime_view" size="32"
                                               type="text" value="" readonly>
                                        <span class="input-group-addon"><span
                                                class="glyphicon glyphicon-time"></span></span>
                                    </div>
                                    <input type="hidden" id="startTime" name="startTime" class="form-control"
                                           placeholder="有效期开始时间">
                                </div>
                            </div>
                            <div class="form-group data-change" style="display:none">
                                <label for="expirationTime_view" class="col-sm-2 control-label">有效期结束时间</label>
                                <div class="col-sm-10">
                                    <div class="input-group date form_datetime" data-date=""
                                         data-date-format="yyyy-mm-dd hh:ii:59" data-link-field="expirationTime"
                                         data-link-format="yyyy-mm-dd hh:ii:59">
                                        <input class="form-control" id="expirationTime_view" name="expirationTime_view"
                                               size="32" type="text" value="" readonly>
                                        <span class="input-group-addon"><span
                                                class="glyphicon glyphicon-time"></span></span>
                                    </div>
                                    <input type="hidden" id="expirationTime" name="expirationTime" class="form-control"
                                           placeholder="有效期结束时间">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="reason" class="col-sm-2 control-label">发起原因</label>
                                <div class="col-sm-10">
                                    <select id="reason_select" name="reason_select" class="form-control">
                                        <option value="虚假送达">虚假送达</option>
                                        <option value="商家无故拒单">商家无故拒单</option>
                                        <option value="商家接单后拒单">商家接单后拒单</option>
                                        <option value="未经用户同意，商品到后要求补差价">未经用户同意，商品到后要求补差价</option>
                                        <option value="未经用户同意，私自更换商品">未经用户同意，私自更换商品</option>
                                        <option value="商家要求用户自提">商家要求用户自提</option>
                                        <option value="商品数量少于用户下单数">商品数量少于用户下单数</option>
                                        <option value="商品有质量问题">商品有质量问题</option>
                                        <option value="过期食品或者临保期食品问题">过期食品或者临保期食品问题</option>
                                        <option value="超1小时或在约定时间内未收到货">超1小时或在约定时间内未收到货</option>
                                        <option value="服务不到位，使用不文明语言辱骂用户">服务不到位，使用不文明语言辱骂用户</option>
                                        <option value="缺货但未下架">缺货但未下架</option>
                                        <option value="缺货但未下架">拼团商品质量问题</option>
                                        <option value="缺货但未下架">拼团商品超时未收到货</option>
                                        <option value="缺货但未下架">拼团商品未及时发货</option>
                                        <option value="缺货但未下架">拼团商品口感不好</option>
                                        <option value="缺货但未下架">拼团商品错发漏发</option>
                                        <option value="其它">其它</option>
                                    </select>
                                    <textarea id="reason" name="reason" placeholder="请写明原因"
                                              class="form-control">虚假送达</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="price" class="col-sm-2 control-label">支付渠道</label>
                                <div class="col-sm-10">
                                    <span>仅支持在线支付订单</span>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" id="sendHongbao_btn" class="btn btn-primary">保 存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关 闭</button>
            </div>
        </div>

    </div>
</div>

